<template>
  <div>
    <div>{{ value }}
      <button @click="$emit('input',10)">修改</button>
    </div>
    <div>{{ str }}
      <button @click="$emit('update:str','哈哈哈哈')">修改</button>
    </div>
    <div>{{ son }}
      <button @click="$emit('update:son',77)">修改</button>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: Number,
      default: 0
    },
    str: {
      type: String,
      default: ''
    },
    son: {
      type: Number,
      default: 0

    }
  },
  data() {
    return {

    }
  },
  created() {

  },
  mounted() {

  },
  methods: {

  }
}
</script>

<style scoped>

</style>
